package cn.cttic.base.api.domain.bo;

import cn.cttic.base.api.domain.BaseProduct;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 产品套餐业务对象 base_product
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseProduct.class, reverseConvertGenerate = false)
public class BaseProductBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    @Size(max = 50, message = "设备名称不能超过50字符", groups = { AddGroup.class, EditGroup.class })
    private String productName;

    /**
     * 设备
     */
    @NotBlank(message = "设备不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 产品缩略图
     */
    @NotBlank(message = "产品缩略图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productThumbnail;

    /**
     * 作业规范
     */
    @NotBlank(message = "作业规范不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fieldWorkGroupId;

    /**
     * 产品海报
     */
    @NotBlank(message = "产品海报不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productPoster;

    /**
     * 产品描述
     */
    private String productIntroduction;

    /**
     * 详细资料
     */
    @NotBlank(message = "详细资料不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productDetail;


}
